-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sparseconvert: copy falls back to copymutable for non-sparse SubArray #32249
Conversation
Why is this method needed at all? |
@fredrikekre, in the case of views of sparse matrices, there is an essential performance improvement compared to the generic
|
Instead of type piracing this on all arrays, can't it be restricted to only apply to the sparse arrays we have? |
@KristofferC, it could be restricted to a finite number of cases by |
Yea, I get that, but (i) I don't see how that relates to the changes in #30552. Where is |
@fredrikekre, I try to remember my motivation to propose this method as part of #30552.
I recognized, that there are specialized methods of
I don't know. It is just an attempt to prevent the user from unexpectedly worse operation times. |
Okay. Can I suggest that we completely drop this copy method for now and we can open a PR/issue where Edit: #32266 |
understood. |
Fixes #32213